home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 26.zip
/
BS1 part 26
/
Info channel v3.1.adf
/
ARexx
/
Convert.adpro
< prev
next >
Wrap
Text File
|
1991-07-19
|
1KB
|
51 lines
/*
** This is a simple program which shows how Art Department
** Professional (ADPro) from ASDG, Inc. can be used
** to read a list of InfoChannel backgrounds and massage these into
** maximum overscan.
** Remember to create a destination directory, and make sure
** all paths are set correctly to suit your system.
** To convert to other resolutions, alter the Abs_scale,
** Render_type and Screen_type commands.
**
** Modified by Geir Otto Molstad, FAMO
*/
options results
address "ADPro"
PIC_LIST = "work:InfoChannel/ARexx/Background.list"
IN_PATH = "work:InfoChannel/Backgrounds/"
OUT_PATH = "work:InfoChannel/NewBackgrounds/"
if OPEN('in' , PIC_LIST , 'r') ~= 1 then do
okay1 "Could Not Open" PIC_LIST
exit
end
in_file = READLN('in')
do while in_file ~= ""
lformat "empty"
load "xxx" 320 400 "color" 0 0 0
lformat "iff"
Screen_type 7 /* Screen type normal hi-res */
load IN_PATH || in_file
if RC ~= 0 then do
okay1 "Could Not Load" in_file
exit
end
ptotal 16
pstatus locked
Dither 1 /* Dither "tar" paletten */
Abs_scale 736 580 /* New resolution */
Render_type 16 /* Number of colors */
Screen_type 31 /* Screen type max overscan hi-res */
Execute
ADPRO_DISPLAY
save OUT_PATH || in_file "SCREEN"
pstatus unlocked
in_file = READLN('in')
end